#!/bin/sh

while true
do
	if [ -f "/usr/motovis/log/pl_temp.txt" ];then
		if [ $(ls -l /usr/motovis/log/pl_temp.txt | awk '{print $5}') -ge 20971520 ];then
			rm -rf /usr/motovis/log/pl_temp.txt
		fi
	fi
	devmem 0xa0020060 >> /usr/motovis/log/pl_temp.txt &
	sleep 1
done
